# Contributor: Uros
# Maintainer: Cameron Banta <cbanta@gmail.com>
pkgname=libestr
pkgver=0.1.11
pkgrel=4
pkgdesc="essentials for string handling (and a bit more)"
options="!check" # No testsuite
url="https://libestr.adiscon.com/"
arch="all"
license="LGPL-2.1-or-later"
subpackages="$pkgname-dev"
source="http://libestr.adiscon.com/files/download/libestr-$pkgver.tar.gz"

prepare() {
 	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="0ab98c2fa4b58cf6fee89c88602725b8b5e8e5a171a6976cdd8cff4dfc1cd3e5b747868da74fccd1bca66b9fa524ceae1c4f1ad5ee653a44ff81df6916ab5328  libestr-0.1.11.tar.gz"
